package com.jourwon.springcloud.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @description:
 * @author: luojm
 * @create: 2020-05-15 17:09
 */
public interface MyUserDetailsService extends UserDetailsService {

	/**
	 * 根据社交登录code 登录
	 */
	UserDetails loadUserBySocial(String code) throws UsernameNotFoundException;
}
